home *** CD-ROM | disk | FTP | other *** search
- @echo off
- cls
- for %%f in (h H s S r R a A) do if %2.==%%f. goto OKAY
- goto USAGE
- :OKAY
- :: This utility turns off the specified attribute for all specified files
- :: that have the specified attribute flag set.
- ffg /qm %1 /a%2 "/eattrib -%2 %%n"
- @echo off
- goto END
- :USAGE
- echo USAGE: %0 [DriveSpec:]FileMask [H,S,R,A]
- echo.
- echo H = hidden; S = System; R = Read Only; A = Archive
- echo.
- echo %0 turns off the specified attribute for files that have it set. The user
- echo is given an opportunity to confirm for each file.
- :END
-